# -*- coding: utf-8 -*-
from django.db import models
from django.contrib.auth.models import User

from apps.l10n.models import Country, AdminArea, City

class Empresario(models.Model):
	user = models.ForeignKey(User, unique=True)
	nombre = models.CharField(max_length=30)
	apellido = models.CharField(max_length=30)
	fecha_nacimiento = models.DateField()
	cod_empresario = models.IntegerField(max_length=12)
	telefono = models.CharField(max_length=30, blank=True)
	movil = models.CharField(max_length=50, blank=True)
	pais = models.ForeignKey(Country)
	departamento = models.ForeignKey(AdminArea)
	ciudad = models.ForeignKey(City)
	def __unicode__(self):
		return u'%s %s' % (self.nombre, self.apellido)
################################################################################